package lupita.persistence;

import java.sql.ResultSet;
import java.sql.SQLException;

public interface MySQLInterface {

	public void openConnection() throws Exception;
	
	public void closeConnection() throws Exception;
	
	// metodo para realizar preferentemente las consultas SELECT
    public ResultSet selectSQL(String sql) throws SQLException;
    
    // metodo para realizar preferentemente las operaciones Insert, Update, Delete
    public int execQuery(String sql) throws SQLException;
}
